function getUrlParms(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return r[2]; 
    return null;
}
var productId = getUrlParms("productid");
var nameOne = getUrlParms("name");
console.log(decodeURI(nameOne), 7777);
$.ajax({

    url: `http://chst.vip:1234/api/getmoneyctrl?productid=${productId}`,

    success(res) {
        // console.log(data);
        let html = ""
        let uu = document.querySelector(".info")
        res.result.forEach(item => {
            html += `<li>
                <div class="infoR">
                <div class="title"><h4>${item.productName}</h4></div>
                <div class="other">
                <span class="mall fl">
                ${item.productFrom}${item.productTime}
                </span><i>${item.productTips}</i>
                </div>
                <div class="container">
                <p>${item.productImgSm}${item.productInfo2}</p>
                </div>
                <div class="bigimg">${item.productImg2}</div>
                <div class="city">${item.productCity}</div>

                </div>
                </li>`
        })
        uu.innerHTML = html;
        // $('#product>.info').html(html)

    }
})

